(adjust_glyph_matrix): Don't try to reuse the current
authorGerd Moellmann <gerd@gnu.org>
Fri, 30 Mar 2001 14:07:20 +0000 (14:07 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 30 Mar 2001 14:07:20 +0000 (14:07 +0000)
matrix of a window when the header line changes, when
new rows are allocated, or when the width changes.

src/dispnew.c

index 977a3f9530b7695ac9f24b8c3093294dca6e0cc0..412d59939562bbb106647be6d5e8cfd606e25028 100644 (file)
@@ -790,9 +790,12 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
             upper window).  Invalidate all rows that are no longer part
             of the window.  */
          if (!marginal_areas_changed_p
+             && !header_line_changed_p
+             && new_rows == 0
+             && dim.width == matrix->matrix_w
              && matrix->window_left_x == XFASTINT (w->left)
              && matrix->window_top_y == XFASTINT (w->top)
-             && matrix->window_width == window_box_width (w, -1))
+             && matrix->window_width == window_width)
            {
              i = 0;
              while (matrix->rows[i].enabled_p